/**
 * @author: lk
 * @data: 2021/11/11 12:48
 */
package core_java.inheritance;

import java.time.LocalDate;


public class Employee {
    private  String name;
    private double salary;
    private LocalDate hireDay;

    public Employee(String name, double salary,int year, int month,int day) {
        this.name = name;
        this.salary = salary;
        this.hireDay = LocalDate.of(year,month,day);
    }

    public String getName() {
        return this.name;
    }

    public double getSalary() {
        return salary;
    }

    public LocalDate getHireDay() {
        return hireDay;
    }

    public void raiseSalary(double byPercent) {
        double raise = salary * byPercent/100;
        salary += raise;
    }
}
